import { Public, RealIp } from '@/decorators';
import { Controller, Get } from '@nestjs/common';

@Public()
@Controller()
export class AppController {
  @Get()
  async home(@RealIp() ip: string) {
    console.log('访问IP', ip);
    return ip;
  }
}
